package com.atguigu.gmall.feign.item;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.model.to.SkuDetailTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("service-item")
@RequestMapping("/rpc/inner/item")
public interface ItemFeign {

    @GetMapping("/getSkuDetail")
    public Result<SkuDetailTo> getSkuDetail(@RequestParam("skuId") Long skuId);
}
